requirejs.config({
	baseUrl: './scripts',
	paths: {
		angular : 'libs/angular.min',
		'angular-ui-router': 'libs/angular-ui-router',
		angularAMD: 'libs/angularAMD',
		domReady: 'libs/domReady',
		swiper: 'libs/swiper-3.4.2.min',
		
		app: 'index/app',
		indexCtrl: 'index/index',
		homeCtrl: 'home/zhuye',
		marketCtrl : 'market/sscs',
		cartCtrl: 'cart/gouwuche',
		mineCtrl: 'mine/wode',
		orderCtrl: 'mine/dingdan',
		detailCtrl: 'common/xiangqing',
		
		
		appRouter: 'router/router',
		cartService: 'service/service',
	},
	shim: {
		angular: {
			exports: 'angular'
		},
		'angular-ui-router': {
			deps: ['angular']
		},
		angularAMD: {
			deps: ['angular']
		}
	}
});

requirejs([
	'angular', 'domReady', 'angular-ui-router',
	 'app', 'appRouter', 'indexCtrl',
	 'cartService', 'homeSwiper'
], function (angular,domReady,angularAMD) {
	domReady(function () {
		angular.bootstrap(document.querySelector('#App'), ['beequick']);
	});
});